import {
  get,
  getBuffer,
  post,
  postJson,
  postFile,
  patchJson,
  del,
  putJson,
  getData
} from "../http.js";
let api = process.env.VUE_APP_API;
if (process.env.VUE_APP_Mock == "true") {
  api = "/mock/";
}

// 招标任务 见证事项
export const jzsxinfo = async (p) =>
  await post(api + "/witness/weeon/buss/jzr/zbtask/jzsx", p);
// 招标任务 见证记录列表
export const jzrecordList = async (p) =>
  await post(api + "/witness/weeon/buss/jzr//zbtask/record_list", p);
// 招标任务 任务信息
export const taskinfo = async (p) =>
  await post(api + "/witness/weeon/buss/jzr/zbtask/task", p);

// 招标任务 项目视图
export const xmviewList = async (p) =>
  await post(api + "/witness/weeon/buss/jzr/zbtask/xm_view", p);

// 招标任务 招标人视图
export const zbrviewList = async (p) =>
  await post(api + "/witness/weeon/buss/jzr/zbtask/zbr_view", p);

// 招标任务 代理机构视图
export const dlviewList = async (p) =>
  await post(api + "/witness/weeon/buss/jzr/zbtask/dl_view", p);

// 招标任务 添加见证记录
export const addJzrecord = async (p) =>
  await post(api + "/witness/weeon/buss/jzr/zbtask/add_record", p);

export const warninginfolist = async (p) =>
  await post(api + "/witness/weeon/buss/warninginfo/findwarninginfolist", p);

// 招标任务 删除见证记录
export const updJzrecord = async (p) =>
  await post(api + "/witness/weeon/buss/jzr/zbtask/upd_record", p);

// 招标任务 删除见证记录
export const delJzrecord = async (p) =>
  await post(api + "/witness/weeon/buss/jzr/zbtask/del_record", p);

